package com.renwei.sample.service;

import com.renwei.sample.domain.User;
import com.renwei.sample.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

	@Autowired
	private UserMapper userMapper;
	
	public List<User> loadUsers(int shardingTotal, int shardingItem){
		List<User> userList = userMapper.findAll(2,1);
		return userList;
	}
}
